<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">


<ui:composition template="/WEB-INF/template/dukeTemplate.xhtml">



	<ui:define name="content">
		<h:form>
			<h:graphicImage library="resources" name="duke.gif"></h:graphicImage>
			<h2>#{msg.welcome1} #{userNumberBean.minimum} #{msg.welcome2}
				#{userNumberBean.maximum} #{msg.welcome3}</h2>
			<h:inputText id="userNo" value="#{userNumberBean.userNumber}">
				<f:validateLongRange minimum="#{userNumberBean.minimum}"
					maximum="#{userNumberBean.maximum}"></f:validateLongRange>
			</h:inputText>

			<h:commandButton id="submit" value="#{msg.welcome_btn}" action="#{userNumberBean.getResponse}"></h:commandButton>

			#{msg.welcome_language} : 
		<h:selectOneMenu onchange="submit()"
				valueChangeListener="#{userNumberBean.countryLocaleCodeChanged}">
				<f:selectItems value="#{userNumberBean.countriesInMap}" />
			</h:selectOneMenu>


			<h:message showSummary="true" showDetail="false"
				style="color:red;font-family:'New Century Schoolbook',serif;"
				id="errors1" for="userNo" />
		</h:form>

	</ui:define>


</ui:composition>
</html>